package com.ruoyi.system.mapper;

import com.ruoyi.common.core.domain.entity.ClientUser;
import com.ruoyi.system.domain.ClientProductSys;
import com.ruoyi.system.domain.ClientUserProductRelationSys;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @Company: 北京卡拉卡尔股份技术有限公司
 * @Author: Darren Ho
 * @Date: 10/10/2020 10:32
 */
public interface ClientUserMapper {

    ClientUser findByUsername(String username);

    int insert(ClientUser user);

    ClientUser findById(Long id);

    int update(ClientUser user);

    int deleteByIdSet(Long[] ids);

    int batchInsert(List<ClientUser> clientUsers);

    List<ClientUser> findByBatchId(Long batchId);

    ClientProductSys findClientProductByName(@Param("name") String name);

    ClientUserProductRelationSys findWebAuthorityByUserId(@Param("userId") Long userId, @Param("productId") Long productId);
}
